use "$input/yu_ash_ready", clear

* use data after 1965
keep if year >= 1965

eststo clear

*// Only citations within ten years of case
eststo: reghdfe cites10_pos_m_log   polar_start if rule_P, absorb(stateyear i.statefe#c.x_year_start x_decade_start one##(c.pca_*)) cluster(state year)
outreg2 using "$output/tables/tab2", excel replace se alpha(0.01, 0.05, 0.1) symbol(**, *, +) addtext(Court-year FE, X, Cohort FE, X, StatexStart-year,X,Case Controls, X) addstat(Adjusted R-squared,  e(r2_a)) nocons nor2 nonotes

*// in levels rather than logs
eststo: reghdfe cites_pos_m   polar_start if rule_P, absorb(stateyear i.statefe#c.x_year_start x_decade_start one##(c.pca_*)) cluster(state year)

outreg2 using "$output/tables/tab2",excel  append se alpha(0.01, 0.05, 0.1) symbol(**, *, +) addtext(Court-year FE, X, Cohort FE, X, StatexStart-year,X,Case Controls, X) addstat(Adjusted R-squared,  e(r2_a)) nocons nor2 nonotes